import request from '@/utils/request'

// 查询电子车牌列表
export function listRfidRecord(query) {
  return request({
    url: '/billsdecl/rfidRecord/list',
    method: 'get',
    params: query
  })
}
export function findRfidListByRfid(rfid) {
  return request({
    url: '/billsdecl/rfidRecord/findList/'+rfid,
    method: 'get',
  })
}

// 查询电子车牌详细
export function getRfidRecord(id) {
  return request({
    url: '/billsdecl/rfidRecord/getInfo/' + id,
    method: 'get'
  })
}

// 新增电子车牌
export function addRfidRecord(data) {
  return request({
    url: '/billsdecl/rfidRecord/add',
    method: 'post',
    data: data
  })
}

// 修改电子车牌
export function updateRfidRecord(data) {
  return request({
    url: '/billsdecl/rfidRecord/edit',
    method: 'post',
    data: data
  })
}

// 删除电子车牌
export function delRfidRecord(id) {
  return request({
    url: '/billsdecl/rfidRecord/remove/' + id,
    method: 'get'
  })
}

// 导出电子车牌
export function exportRfidRecord(query) {
  return request({
    url: '/billsdecl/rfidRecord/export',
    method: 'get',
    params: query
  })
}
